<template>
    <div @click="getFather">
        <div>
            <img :src="item.imgUrl" alt="">
        </div>
        <div>
            {{ item.text }}
        </div>
        <div class="pirce">
            {{ item.price }}
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {

        }
    },
    props:['item'],
    methods:{
        getFather(){
            this.$emit('getson',this.item.name)
        }
    }
}
</script>

<style scoped>
    img{
        width: 100%;
    }
    .pirce{
        color: rgb(21, 192, 58);
    }
</style>